﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace XRM.Security.DataAccess.Models
{
    [Table("PCSticker")]
    public class PCSticker
    {
        public PCSticker()
        {
        }

        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int PCStickerId { get; set; }
        [Required]
        [MaxLength(50)]
        public string StickerNumber { get; set; }
        
        public int PCId { get; set; }
        [ForeignKey("PCId")]
        public virtual PC PC { get; set; }
    }
}
